![]() | ![]() | ![]() | ![]() | ![]() |
In SAS® Enterprise Miner™, "SAS Enterprise Miner and SAS Text Miner Procedures Reference for SAS 9.4, Fourth Edition" contains code for a CalProb macro. The macro is in the German Credit Data Example on page 279 of the chapter "The SVMSCORE Procedure." However, the macro contains incorrect code.
If you run the macro, then a syntax error is displayed.
2 ! then do; PredProb = -_P_/&minP; end; if PredProb ne . then do; if PredProb > 1 then PredProb
-
22
2 ! = 1; else if PredProb < 0 then PredProb = 0; PredProb =1 - (1+PredProb
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, INPUT, PUT.
WARNING: Apparent symbolic reference MINP not resolved.
The error is displayed because of an incorrect spelling in the code (where trim(Descr) ="Mimimum F";). However, if you correct the spelling error and run the code, then the results of the PredProb variable are incorrect. There are no errors or warnings to indicate that the results are incorrect.
To correct both problems, download and use the correct macro code from the Full Code tab of this note.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Enterprise Miner | Windows 7 Home Premium 32 bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 |
Windows 7 Enterprise x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Enterprise 32 bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows Server 2012 Std | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows Server 2012 R2 Std | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows Server 2012 R2 Datacenter | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows Server 2012 Datacenter | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows Server 2008 for x64 | 14.2 | 9.4 TS1M4 | ||||
Microsoft Windows Server 2008 R2 | 14.2 | 9.4 TS1M4 | ||||
Microsoft Windows Server 2008 | 14.2 | 9.4 TS1M4 | ||||
Microsoft Windows 10 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8.1 Pro x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8.1 Pro 32-bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8.1 Enterprise x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8 Pro x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8 Pro 32-bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8 Enterprise x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft Windows 8 Enterprise 32-bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Microsoft® Windows® for x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Home Premium x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Professional 32 bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Professional x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Ultimate 32 bit | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Windows 7 Ultimate x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
64-bit Enabled AIX | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
64-bit Enabled Solaris | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
HP-UX IPF | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Linux for x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 | ||
Solaris for x64 | 14.2 | 14.3 | 9.4 TS1M4 | 9.4 TS1M5 |